<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/jsp/include/header.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<title>仓储管理系统</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.7.1.min.js"></script>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui-1.2.5/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui-1.2.5/themes/icon.css">
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-1.2.5/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-1.2.5/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-1.2.5/plugins/jquery.validatebox.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-1.2.5/validatebox.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/cms/password.js"></script>
	</head>
	<body>
		<div id="passwordInfoUpdate" icon="icon-edit" style="padding: 5px; width: 650px; height: 500px;">
			<form action="<c:url value='/cmsmd/updatePassword.xhtml'/>" method="post" name="updateForm" id="updateForm">
				<h3 id="passwordUpdateMessage" style="color: red;"></h3>
				<div class="ToolTip_Form" id="updatePassword" onkeydown="if(event.keyCode==13){updatePassword();}">
					<table>
						<tr>
							<td align="right">原始密码：</td>
							<td align="left">
								<input type="password" class="easyui-validatebox" id="oldpassword" name="oldpassword" maxlength="20" required="true" validType="password" missingMessage="密码由字母和数字组成，至少6位!"/>
							</td>
						</tr>
						<tr>
							<td align="right">新&nbsp;&nbsp;密&nbsp;&nbsp;码：</td>
							<td align="left">
								<input type="password" class="easyui-validatebox" id="password" name="password" maxlength="20" required="true" validType="password" missingMessage="密码由字母和数字组成，至少6位!"/>
							</td>
						</tr>
						<tr>
							<td align="right">重复密码：</td>
							<td align="left">
								<input type="password" class="easyui-validatebox" id="repassword" name="repassword" maxlength="20" required="true" validType="repassword[password]" missingMessage="密码由字母和数字组成，至少6位!"/>
							</td>
						</tr>
						<tr>
							<td colspan="2" align="center">
								<a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="updatePassword();">提交</a>
								<a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="passwordReset();">重置</a>
							</td>
						</tr>
					</table>
				</div>
			</form>
		</div>
	</body>
</html>